package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;
import java.util.*;

@Data
@Table
public class Comment {
    @TableId(type = IdType.AUTO)
           private Long id;
            private String nickname;
            private String email;
           private String content;
            private String avatar;
           private Date create_time;
          private Long blog_id;
          private Long parent_comment_id;
         private String parent_nickname;
         private  Integer  admincomment;
         private  Long rekey;
      @TableField(exist = false)
         private List<Comment> getcoc= new ArrayList<>();


}
